package com.kevin.spring;

import com.kevin.spring.aspectj.PersonService;
import com.kevin.spring.tx.User;
import com.kevin.spring.tx.UserDaoInter;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by loli on 2015/6/10.
 */
public class AspectJDemo {
    public static  void main(String[] args){
        ApplicationContext factory = new ClassPathXmlApplicationContext("spring-aspectj.xml");;
        PersonService personService = (PersonService) factory.getBean("personService");
        personService.addPerson("kevin");
        personService.deletePerson("kevin");
    }
}
